<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        let sum = 0;
        let sum1 = 0;
        // 1-200奇数之和
        for (let i = 1; i <= 200; i = i + 2) {
            sum = sum + i;
        }
        // 1-100之间能被3和7整除的数的和
        for (let i = 1; i <= 100; i++) {
            if (i % 3 == 0 || i % 7 == 0) {
                sum1 += i
            }
        }
        console.log(sum);
        console.log(sum1);
    </script>
</body>

</html>